FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

RDEPENDS:${PN} += "bash gpios-manager "
DEPENDS:append = " ps23-yaml-config ipmitool "
SRC_URI += "file://phosphor-softpoweroff"

EXTRA_OECONF = " \
    SENSOR_YAML_GEN=${STAGING_DIR_HOST}${datadir}/ps23-yaml-config/ipmi-sensors.yaml \
    INVSENSOR_YAML_GEN=${STAGING_DIR_HOST}${datadir}/ps23-yaml-config/ipmi-inventory-sensors.yaml \
    "

do_install:append() {
    install -m 0755 ${WORKDIR}/phosphor-softpoweroff ${D}/${bindir}/phosphor-softpoweroff
}
